home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / faq / vol15n14.zip / DDGAME.ZIP / GAMEFRAM.H < prev    next >
C/C++ Source or Header  |  1996-04-15  |  1KB  |  61 lines

  1. // MainFrm.h : interface of the CGameFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #include <DDraw.h>
  6.  
  7. class CGameFrame : public CFrameWnd
  8. {
  9. public:
  10.     CGameFrame();
  11.     virtual ~CGameFrame();
  12.  
  13. // Attributes
  14. public:
  15.     BOOL m_bUseEmulation;
  16.  
  17.   // DirectDraw variables
  18.   LPDIRECTDRAW            m_pDD;
  19.   LPDIRECTDRAWSURFACE     m_pFrontBuffer;
  20.   LPDIRECTDRAWSURFACE     m_pBackBuffer;
  21.   LPDIRECTDRAWPALETTE     m_pGamePalette;
  22.  
  23. // Operations
  24. public:
  25.   virtual BOOL InitGraphics();
  26.     virtual void KillGraphics();
  27.  
  28. protected:
  29.     virtual CString GetWindowTitle();
  30.  
  31.     virtual BOOL InitPalette();
  32.   virtual BOOL RestoreSurfaces();
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CGameFrame)
  37.     protected:
  38.     //}}AFX_VIRTUAL
  39.  
  40. // Implementation
  41. public:
  42.   virtual BOOL UpdateGame();
  43.  
  44. // Generated message map functions
  45. protected:
  46.     //{{AFX_MSG(CGameFrame)
  47.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  48.     afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
  49.     //}}AFX_MSG
  50.     DECLARE_MESSAGE_MAP()
  51.  
  52. // Diagnostics
  53. public:
  54. #ifdef _DEBUG
  55.     virtual void AssertValid() const;
  56.     virtual void Dump(CDumpContext& dc) const;
  57. #endif
  58. };
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61.